package com.yequan.work;

import org.springframework.beans.BeanUtils;

/**
 * @author yequan
 * @date 2021/12/09 09:53
 **/
public class BeanCopy {

    public static void main(String[] args) {
        RegionTO regionTO1 = new RegionTO(1,2,"1");
        RegionTO regionTO2 = new RegionTO(2,3,"2");
        RegionTO regionTO3 = new RegionTO(3,4,"3");
        PointInfoTO pointInfoTO = new PointInfoTO(regionTO1, regionTO2, regionTO3);
        PointInfoTO pointInfoTOCopy = new PointInfoTO();
        BeanUtils.copyProperties(pointInfoTO, pointInfoTOCopy);
        System.out.println(pointInfoTOCopy.toString());
    }

}
